cmake_minimum_required(VERSION 3.11)
project(tcptest)
message("cmake module " $ENV{CMAKE_MODULE_PATH})
message("project dir "  ${PROJECT_SOURCE_DIR})


include_directories(${CMAKE_CURRENT_SOURCE_DIR}/third/include)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../../../obj/inc)

link_directories(${CMAKE_CURRENT_SOURCE_DIR}/../../../build)
link_directories(${CMAKE_CURRENT_SOURCE_DIR}/../../../obj)
link_directories(${CMAKE_CURRENT_SOURCE_DIR}/third/lib)

link_libraries(libgenerallib.a)
link_libraries(libevent.a)
link_libraries(libevent_core.a)
link_libraries(ws2_32)
link_libraries(bcrypt)
link_libraries(Iphlpapi.lib)
add_executable(tcptest tcpclient_test.cpp)

target_include_directories(tcptest SYSTEM  PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../../../obj/inc/third/include)
